// =====================================================
// FacebookHeader class
// =====================================================
// Inheritance
UIFacebookHeader.InheritsFrom(UISimpleControl);

function UIFacebookHeader()
{
    // Methods
    this.Construct = Construct;

    // Method definitions
    function Construct(id, pos, params)
    {
        // set HTML tag used for this control
        this.SetTag("uifacebookheader");

        // call parent constructor
        parent = Object.getPrototypeOf(this);
        parent.Construct(id, pos);

        // redefine/add more properties
        this.SetProperty("Size",        new Size("500px", "40px"));
        this.SetProperty("BackImage",   "url('Images/fbHeader.png')");

        this.AddProperty("User");
        this.AddProperty("Messages");
        this.AddProperty("Requests");
        this.AddProperty("Notifications");
    }
}